package ru.stepuk.modern;

/**
 *
 * @author ivan
 */
public class InvalidModelException extends Exception {

    private String msg;

    /**
     * Creates a new instance of <code>InvalidModelException</code> without detail message.
     */
    public InvalidModelException() {
    }


    /**
     * Constructs an instance of <code>InvalidModelException</code> with the specified detail message.
     * @param msg the detail message.
     */
    public InvalidModelException(String msg) {
        super(msg);
        this.msg = msg;
    }

    @Override
    public String toString() {
        return msg;
    }
}
